package com.salts.Dao;

import com.salts.domain.dto.ClothDto;
import com.salts.domain.po.Cloth;
import com.salts.domain.vo.ClothVo;
import com.salts.domain.vo.DisplayClothVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository//交由Spring容器管理
public interface ClothMapper {
    List<DisplayClothVo> getProductInfoById(List<Integer> clothIds);
    /**
     * 查询最新的商品@List<DisplayClothVo>
     */
    List<DisplayClothVo> getNewProduct();
    Cloth getProductInfo(int clothId);
    List<ClothDto> getDisplayClothDto(List<Integer> clothIdList);

    List<Cloth> getAllInfo();

    List<Cloth> queryByName(String clothName);

}
